import service from '@/utils/requestUitl';


// 查询详情
export const getGoodsDetail = (params) => {
  return service('', {
    method: 'POST',
    serviceName: 'NftGoodsService',
    methodName: 'getGoodsDetail',
    bizParams: {
      ...params,
    },
  });
};

// 领取
export const obtainNft = (params) => {
  return service('', {
    method: 'POST',
    serviceName: 'NftGoodsService',
    methodName: 'obtainNft',
    bizParams: {
      ...params,
    },
  });
};

// 检查领取口令
export const obtainNftPasswordCheck = (params) => {
  return service('', {
    method: 'POST',
    serviceName: 'NftGoodsService',
    methodName: 'obtainNftPasswordCheck',
    bizParams: {
      ...params,
    },
  });
};


// 获取微信签名
export const createJsapiSignature = (params) => {
  return service('', {
    method: 'POST',
    serviceName: 'WechatService',
    methodName: 'createJsapiSignature',
    bizParams: {
      ...params,
    },
  });
};

// 创建订单
export const createPurchaseOrder = (params) => {
  return service('', {
    method: 'POST',
    serviceName: 'PurchaseService',
    methodName: 'createPurchaseOrder',
    bizParams: {
      ...params,
    },
  });
};

// 创建订单
export const getUserInfo = (params) => {
  return service('', {
    method: 'POST',
    serviceName: 'CustomerService',
    methodName: 'getUserInfo',
    bizParams: {
      ...params,
    },
  });
};
